@import "variable";

.nav-wrapper {
  width: 100%;
  height: px2rem(40px);
  @extend %tabbarNav;
  background-color: $color-theme;
  top: 0;
  .nav-content {
    @extend %AllEl;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
    padding: px2rem(10px);
    color: #fff;
    .icon-logo {
      margin-right: px2rem(10px);
      font-size: px2rem(30px);
    }
    .input {
      display: flex;
      flex: 1;
      justify-content: center;
      align-items: center;
      background-color: $color-theme-d;
      border-radius: px2rem(4px);
      box-sizing: border-box;
      padding: px2rem(5px);
      font-size: $text-size-sm;
      font-weight: bold;
      .icon-search {
        margin-right: px2rem(2px);
      }
    }
  }
}

.content-wrapper {
  box-sizing: border-box;
  @extend %AllEl;
  padding: px2rem(40px) 0 px2rem(50px);
  background-color: gainsboro;
  .content {
    @extend %AllEl;
    overflow-y: auto;
    .navBox {
      position: relative;
      margin-top: -#{px2rem(10px)};
      .topRadius {
        width: 100%;
        height: px2rem(10px);
        font-size: 0px;
        background-image: url("/images/TB1vMMwChTpK1RjSZFMXXbG_VXa-1125-30.png");
        background-size: contain;
        margin-bottom: -#{px2rem(2px)};
      }
      .itemBox {
        background-color: #fff;
        padding: px2rem(10px);
      }
      ul {
        display: flex;
        flex-wrap: wrap;
        margin-bottom: px2rem(10px);
        .navItem {
          display: flex;
          flex-direction: column;
          justify-content: center;
          align-items: center;
          flex: 0 0 20%;
          margin-bottom: px2rem(10px);
          .icon {
            width: px2rem(50px);
            height: auto;
            margin-bottom: px2rem(5px);
          }
          .text {
            font-size: $text-size-sm;
            color: rgba($color: #000000, $alpha: 0.7);
          }
        }
      }
      .scrollBar {
        width: 13%;
        height: px2rem(4px);
        background-color: #e6e6e6;
        border-radius: px2rem(20px);
        margin: 0 auto;
        .scrollThumb {
          display: inline-block;
          width: 50%;
          height: 100%;
          background-color: $color-theme;
          border-radius: px2rem(20px);
          float: left;
        }
      }
    }
    .productWrapper {
      margin: px2rem(10px) px2rem(5px);
      box-sizing: border-box;
      background-color: #fff;
      padding: px2rem(10px);
      border-radius: px2rem(10px);
      ul {
        display: flex;
        flex-wrap: wrap;
        .product {
          display: flex;
          flex-direction: column;
          flex: 0 0 50%;
          box-sizing: border-box;
          padding: px2rem(5px);
          overflow: hidden;
          white-space: nowrap;
          .pro-content {
            // width: 100%;
            box-sizing: border-box;
            padding: px2rem(10px);
            overflow: hidden;
            h5 {
              width: 100%;
              box-sizing: border-box;
              font-size: $text-size-me;
              overflow: hidden;
              text-overflow: ellipsis;
            }
            .oldPrice {
              color: #d5d5d5;
              font-size: $text-size-sm;
              text-decoration: line-through;
              margin: px2rem(10px) 0;
            }
            .pcBox {
              display: flex;
              justify-content: space-between;
              align-items: center;
              .price {
                .char {
                  font-size: $text-size-sm;
                }
                color: $color-theme;
              }
              .count {
                text-align: right;
                font-size: $text-size-sm;
              }
            }
          }
        }
      }
    }
  }
}
.tabbar-wrapper {
  width: 100%;
  height: px2rem(50px);
  @extend %tabbarNav;
  bottom: 0;
  box-shadow: 0 0 px2rem(1px) #c4c4c4;
  background: #ffffff;
  .tabbar-content {
    box-sizing: border-box;
    padding: 0 px2rem(20px);
    @extend %AllEl;
    ul {
      @extend %AllEl;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }
    .tabItem {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      color: #787878;
      .icon {
        font-size: px2rem(20px);
        margin-bottom: px2rem(5px);
      }
      .text {
        text-align: center;
        font-size: $text-size-xs;
        font-weight: bold;
      }
    }
  }
}
